package com.xyzq.webapp.action.ya.report;

import com.xyzq.model.ya.data.Account;
import com.xyzq.service.ya.AccountManager;
import com.xyzq.webapp.action.BaseAction;

public class SingleAccountReportAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1633078493714217914L;

	private Integer accountId;
	private Account account;
	private AccountManager accountManager;
	

	public Integer getAccountId() {
		return accountId;
	}


	public Account getAccount() {
		return account;
	}


	public AccountManager getAccountManager() {
		return accountManager;
	}


	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}


	public void setAccount(Account account) {
		this.account = account;
	}


	public void setAccountManager(AccountManager accountManager) {
		this.accountManager = accountManager;
	}


	public String execute() {
		if (this.accountId == null) {
			return INPUT;
		}
		this.account = this.accountManager.findByAccountId(accountId);
		this.logUserAction("SingleAccountReport", "query:"+this.account);
		return SUCCESS;
	}
}
